/**
 * 版权所有 (C), 2019-2019, XXX有限公司
 * 项目名：com.company.study.designpatterns.strategy
 * 文件名: TripContext
 * 日期: 2019/6/16 13:32
 * 说明:
 */
package com.company.study.designpatterns.strategy;

/**
 * @author Anbang713
 * @create 2019/6/16
 */
public class TripContext {

    /**
     * 出行策略
     */
    private TripStrategy tripStrategy;

    public TripContext(TripStrategy tripStrategy) {
        this.tripStrategy = tripStrategy;
    }

    /**
     * 选择出行策略
     */
    public void chooseTripMode() {
        this.tripStrategy.tripMode();
    }
}